package com.mifengs.mall.event;

import com.mifengs.mall.entity.MqttMsg;

/**
 * Created by lynn on 2018/1/31.
 */

public class PushMsgEvent {

    public static final int MOPAO_MSG = 1;
    public static final int VOICE_MSG = 2;

    private MqttMsg mqttMsg;
    public int action;

    public PushMsgEvent(int action) {
        this.action = action;
    }

    public PushMsgEvent(MqttMsg mqttMsg) {
        this.mqttMsg = mqttMsg;
    }

    public MqttMsg getMqttMsg() {
        return mqttMsg;
    }

    public void setMqttMsg(MqttMsg mqttMsg) {
        this.mqttMsg = mqttMsg;
    }
}
